/**
 * 
 */
package graphic;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author Sepp Hoedenaeken 
 *
 */
public class JStatusBar extends JPanel {

	private JLabel score;
	
	public JStatusBar() {
		score = new JLabel("Score");
		this.setLayout( new BorderLayout() );
		this.setPreferredSize(new Dimension(10, 23));
		this.add(score, BorderLayout.EAST);
		this.add( new JLabel("Statusbar"), BorderLayout.CENTER );
		this.setVisible(true);
	}
	
	protected void paintComponent(Graphics g) {
	    super.paintComponent(g);

	    int y = 0;
	    g.setColor(new Color(156, 154, 140));
	    g.drawLine(0, y, getWidth(), y);
	    y++;
	    g.setColor(new Color(196, 194, 183));
	    g.drawLine(0, y, getWidth(), y);
	    y++;
	    g.setColor(new Color(218, 215, 201));
	    g.drawLine(0, y, getWidth(), y);
	    y++;
	    g.setColor(new Color(233, 231, 217));
	    g.drawLine(0, y, getWidth(), y);

	    y = getHeight() - 3;
	    g.setColor(new Color(233, 232, 218));
	    g.drawLine(0, y, getWidth(), y);
	    y++;
	    g.setColor(new Color(233, 231, 216));
	    g.drawLine(0, y, getWidth(), y);
	    y = getHeight() - 1;
	    g.setColor(new Color(221, 221, 220));
	    g.drawLine(0, y, getWidth(), y);

	  }
}
